<include file="Public:header" />
<link type="text/css" href="__PUBLIC__/jcms/css/list.css" rel="stylesheet" />
	
<div id="content">
	<div id="main">
		<include file="default:navig" />            
		<ul>        
        	<li style="float:right;"><p><input onclick="selflo('{:U('Sys/aduser_edit','/act/add')}')" class="button" type="submit" value="管理员新增"></p></li>
        </ul>            
    	<table class="fullwidth" cellpadding="0" cellspacing="0" border="0">
            <thead>
                <tr>
                    <td width="*">管理员帐号</td>
                    <td width="10%" align="center">所属权限</td> 
                    <td width="10%" align="center">最后登录IP</td>  
                    <td width="20%" align="center">最后登录时间</td>
                    <td width="10%" align="center">登录次数</td>   
                    <!-- <td width="10%" align="center">帐号状态</td> -->       
                    <td width="20%" align="center">操作</td>
                </tr>
            </thead>
            <tbody>
            	<volist name="lists" id="vo" empty="$empty">
                <tr>
                    <td>{$vo.adname}</td>
                    <td align="center">
                    	<if condition="$vo.groups eq 1">
                    		超级管理员
                        <elseif condition="$vo.groups eq 2"/>
                        	管理员
                        </if>    
                    </td>
                    <td align="center">{$vo.lastloginip}</td>
                    <td align="center">{$vo['lastlogintime']|date="Y-m-d H:i:s",###}</td>
                    <td align="center">{$vo.loginnum}</td>
                    <!-- <td align="center">
                    	<if condition="$vo.isopen eq '1' ">
                    		<div class="fl ui-state-default ui-corner-all noboder" style="left:20%; position:relative;"><span class="fl ui-icon ui-icon-check"></span><span class="fl">开启</span></div>
                        <else />
                        	<div class="fl ui-state-default ui-corner-all fl noboder" style="left:20%; position:relative;"><span class="ui-icon ui-icon-closethick"></span><span class="fl">关闭</span></div> 
                        </if></td>
                    -->    
                    <td align="center">
                        <a href="{:U('Sys/aduser_edit?act=edit&id='.$vo['id'])}">修改</a>
                        <if condition="$vo.groups neq 1">
                        	<a href="__APP__/Sys/aduser_power/id/{$vo['id']}">权限</a>
                        </if>    
                        <if condition="$vo['id'] neq '1' ">
                        	<a href="#" onclick="opendia({$vo['id']})">删除</a>
                        </if>
                    </td>
                </tr>
                </volist>         
            </tbody>
        </table>            
        <ul>
     		<li style="float:right; margin-right:5px;">{$page}</li>
        </ul>
	</div>
</div>
<div id="dialog" title="提示!">
    <p>确定要删除?</p>
</div>            
<script type="text/javascript">
var deltid="";
opendia=function(id){
	$('#dialog').dialog('open');
	deltid=id;
	return false;
}
$('#dialog').dialog({
	autoOpen: false,
	width: 300,
	buttons: {
		"Ok": function() { 
			window.location.href="{:U('Sysdo/aduser?act=del','','')}"+"/id/"+deltid;
			//$(this).dialog("close"); 
		}, 
		"Cancel": function(){
			$(this).dialog("close"); 
		} 
	}
});
</script>                 
<include file="Public:footer" />    